<div class="account-form">
    <?php echo $this->Form->create( "User", array( "controller" => "users", "action" => "login" ) ); ?>
    <fieldset>
        <div class="form-group"><?php echo $this->Form->input( "username", array( "class" => "form-control", "pattern" => "[a-zA-Z0-9]+" ) ); ?></div>
        <div class="form-group"><?php echo $this->Form->input( "password", array(
                "type" => "password",
                "class" => "form-control",
                "pattern" => "^[a-zA-Z0-9_-]{4,}$"
            ) ); ?></div>
        <div class="form-group"><?php echo $this->Form->end( array(
                                                                 "label" => "Login",
                                                                 "class" => "btn"
                                                             ) ); ?></div>
    </fieldset>
</div>